package com.yanfan.energy.service;

import com.yanfan.energy.domain.TreeNode;
import com.yanfan.energy.domain.statist.CompanyBuildArea;
import com.yanfan.energy.domain.statist.CompanyBuildAreaEntity;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * 楼栋service
 */
public interface BuildService {

    List<CompanyBuildArea> deviceLocation(CompanyBuildArea companyBuildArea);

    void deviceLocationAdd(CompanyBuildArea companyBuildArea);

    void deviceLocationUpdate(CompanyBuildArea companyBuildArea);

    void deviceLocationDelete(CompanyBuildArea companyBuildArea);

    CompanyBuildArea deviceLocationDetail(CompanyBuildArea companyBuildArea);

    List<TreeNode> deviceLocationDeptTree();

    List<CompanyBuildAreaEntity> selectCompanyBuildAreaList(Integer status, String name);

    void addCompanyBuildArea(CompanyBuildAreaEntity entity);

    void updateCompanyBuildArea(CompanyBuildAreaEntity entity);


    void deleteCompanyBuildArea(CompanyBuildAreaEntity entity);

    CompanyBuildAreaEntity detailCompanyBuildArea(CompanyBuildAreaEntity entity);

    void export(HttpServletResponse response, Integer status, String name) throws IOException;

    List<CompanyBuildAreaEntity> findFloorsByBuilds(Integer[] buildIds);

    List<CompanyBuildAreaEntity> findAreaByFloors(Integer[] floorIds);
}
